package com.jshan.base.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.time.LocalDateTime;

@Data
@TableName("sys_server")
@Schema(description = "系统服务器实体")
public class SysServer {
    @TableId(type = IdType.AUTO)
    @Schema(description = "服务器ID")
    private Long id;

    @Schema(description = "服务器名称")
    private String name;

    @TableField("ip")
    @Schema(description = "IP地址")
    private String ip;

    @Schema(description = "操作系统")
    private String os;

    @Schema(description = "端口号")
    private Integer port;

    @Schema(description = "登录用户名")
    private String username;

    @Schema(description = "登录密码")
    private String password;

    @TableField("private_key")
    @Schema(description = "私钥")
    private String privateKey;

    @Schema(description = "状态(0:禁用 1:启用)")
    private Integer status;

    @TableField("create_time")
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @TableField("update_time")
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;
}
